import request from '@/config/axios'

export interface TechnolReviewTaskVO {
  id: number
  dictTaskType: number
  dictTaskStatus: number
  remarks: string
  taskNumber: string
  orderNumber: string
  productNumber: string
}

// 查询订单管理--技术评审--技术评审任务单列表
export const getTechnolReviewTaskPage = async (params) => {
  return await request.get({ url: `/order/technol-review-task/page`, params })
}

// 查询订单管理--技术评审--技术评审任务单详情
export const getTechnolReviewTask = async (id: number) => {
  return await request.get({ url: `/order/technol-review-task/get?id=` + id })
}

// 新增订单管理--技术评审--技术评审任务单
export const createTechnolReviewTask = async (data) => {
  return await request.post({ url: `/order/technol-review-task/create`, data })
}

// 修改订单管理--技术评审--技术评审任务单
export const updateTechnolReviewTask = async (data) => {
  console.log(data)
  return await request.put({ url: `/order/technol-review-task/update`, data })
}

// 删除订单管理--技术评审--技术评审任务单
export const deleteTechnolReviewTask = async (id: number) => {
  return await request.delete({ url: `/order/technol-review-task/delete?id=` + id })
}

// 导出订单管理--技术评审--技术评审任务单 Excel
export const exportTechnolReviewTask = async (params) => {
  return await request.download({ url: `/order/technol-review-task/export-excel`, params })
}
// 查询订单信息列表
export const getProductRelationPageAll = async (params) => {
  return await request.get({ url: `/order/marketing-order-info/relation-sole-list`,params })
}
// 查询订单管理-营销管理-订单产品信息列表
export const getProductRelationPage = async (params) => {
  return await request.get({ url: `/order/product-relation/pro-book-list`, params })
}